﻿using BCCommon;
using BCCommon.TMS.Insured;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.InsuredConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.InsuredConfig
{
    /// <summary>
    /// 保价配置
    /// </summary>
    public interface IInsuredConfigService
    {
        /// <summary>
        /// 添加保价配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="requestDto">保价配置添加信息</param>
        /// <returns></returns>
        InsuredConfigDto Add(AdminDto admin, InsuredConfigRequestDto requestDto);

        /// <summary>
        /// 修改保价配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="insuredConfigId">保价配置Id</param>
        /// <param name="requestDto">保价配置修改信息</param>
        /// <returns></returns>
        InsuredConfigDto Update(AdminDto admin, int insuredConfigId, InsuredConfigRequestDto requestDto);

        /// <summary>
        /// 删除保价配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="insuredConfigId">保价配置Id</param>
        void Delete(AdminDto admin, int insuredConfigId);
        /// <summary>
        /// 获取保价配置
        /// </summary>
        /// <param name="insuredConfigId">保价配置Id</param>
        /// <returns></returns>
        InsuredConfigDto Get(int insuredConfigId);
        /// <summary>
        /// 获取保价配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="insuredType">保价类型</param>
        /// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置ID</param>
        /// <param name="createStartDate">创建开始日期</param>
        /// <param name="createEndDate">创建结束日期</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<InsuredConfigViewDto> Query(AdminDto admin, InsuredType? insuredType,int? vehicleTransportBusinessConfigId, DateTime? createStartDate, DateTime? createEndDate, int pageIndex, int pageSize);

        /// <summary>
        /// 获取保价配置列表
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="insuredType">保价类型</param>
        /// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置ID</param>
        /// <returns></returns>
        IEnumerable<InsuredConfigViewDto> GetList(AdminDto admin, InsuredType? insuredType, int? vehicleTransportBusinessConfigId);
    }
}
